import type { RouteRecordWithMenuItem } from "@/router/types";
import BasicLayout from "@/layouts/BasicLayout";
import AdminList from "@/views/account/admin-list";
import UserList from "@/views/account/user-list";

const route: RouteRecordWithMenuItem = {
  path: "/account",
  key: "/account",
  label: "账号管理",
  sort: 9,
  element: <BasicLayout />,
  children: [
    {
      path: "admin-list",
      key: "/account/admin-list",
      label: "管理员列表",
      element: <AdminList />,
    },
    {
      path: "user-list",
      key: "/account/user-list",
      label: "用户列表",
      element: <UserList />,
    },
  ],
};

export default route;
